home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / doeo.swf / scripts / DefineSprite_107 / frame_1 / DoAction.as < prev   
Text File  |  2013-04-24  |  1KB  |  33 lines

  1. function startAd(ngad_url)
  2. {
  3.    trace("opening " + ngad_url);
  4.    System.security.allowDomain("70.87.128.99");
  5.    System.security.allowInsecureDomain("70.87.128.99");
  6.    System.security.allowDomain("ads.shizmoo.com");
  7.    System.security.allowInsecureDomain("ads.shizmoo.com");
  8.    System.security.allowDomain("www.cpmstar.com");
  9.    System.security.allowInsecureDomain("www.cpmstar.com");
  10.    System.security.allowDomain("server.cpmstar.com");
  11.    System.security.allowInsecureDomain("server.cpmstar.com");
  12.    var ngads_redirect = new XML();
  13.    ngads_redirect.ignoreWhite = true;
  14.    ngads_redirect.onLoad = function(success)
  15.    {
  16.       trace("[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!");
  17.       if(success)
  18.       {
  19.          ng_ad.loadMovie(ngads_redirect.toString(),"GET");
  20.       }
  21.    };
  22.    ngads_redirect.load(ngad_url);
  23. }
  24. if(NewgroundsAPI.getAdURL())
  25. {
  26.    startAd(NewgroundsAPI.getAdURL());
  27. }
  28. NewgroundsAPI.onAdsApproved = function(ad_url)
  29. {
  30.    startAd(ad_url);
  31. };
  32. stop();
  33.